package com.zhao.fishingguideserver.service;

import com.zhao.fishingguideserver.POJO.Cart;

import java.util.List;

public interface CartService {

    String addCart(Long userId, Long productId, Integer quantity);

    List<Cart> listCart(Long user_id);

    void updateQuantity(Long cartId, Integer quantity);

    void deleteCart(Long cartId);

    void toggleSelect(Long cartId, boolean b);

    void selectAll(Long user_id, boolean b);

    void batchDelete(List<Long> cartIds);

}
